﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Buy.aspx.cs" Inherits="Buy" Title="Untitled Page" StylesheetTheme="SkinFile" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    &nbsp;<table align="center" bgcolor="#cccccc" border="0" cellpadding="5" cellspacing="1"
        style="font-size: 12px; line-height: 2" width="100%">
        <tr>
            <td align="left" bgcolor="#ffffff" class="pad" colspan="2">
            <img src="images/cart.jpg" />
            </td>
        </tr>
        <tr>
            <td align="left" bgcolor="#ffffff" class="pad" colspan="2">
                尊敬的客户<%=Session["user"] %>您好</td>
        </tr>
        <tr>
            <td align="left" bgcolor="#ffffff" class="pad" colspan="2" style="height: 65px">
                <asp:Label ID="lblMsg" runat="server" Width="82px"></asp:Label>
                <asp:GridView ID="gdvList" runat="server" AutoGenerateColumns="False" CellPadding="4"
                    ForeColor="#333333" GridLines="None" OnRowDeleting="gdvList_RowDeleting" Width="555px">
                    <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                    <Columns>
                        <asp:BoundField DataField="ProId" HeaderText="商品编号" />
                        <asp:BoundField DataField="ProName" HeaderText="商品名称" />
                        <asp:BoundField DataField="ProNum" HeaderText="商品数量" />
                        <asp:BoundField DataField="MemberPrice" HeaderText="价格" />
                        <asp:CommandField HeaderText="操作" ShowDeleteButton="True" />
                    </Columns>
                    <RowStyle BackColor="#E3EAEB" />
                    <EditRowStyle BackColor="#7C6F57" />
                    <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
                    <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
                    <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                    <AlternatingRowStyle BackColor="White" />
                </asp:GridView>
                <asp:Label ID="lblSum" runat="server" Width="207px"></asp:Label></td>
        </tr>
        <tr>
            <td align="right" bgcolor="#ffffff" class="pad" style="width: 167px">
                商品编号：</td>
            <td bgcolor="#ffffff" class="pad" width="855">
                <asp:Label ID="id" runat="server"></asp:Label></td>
        </tr>
        <tr>
            <td align="right" bgcolor="#ffffff" class="pad" style="width: 167px; height: 34px">
                商品名称：</td>
            <td bgcolor="#ffffff" class="pad" style="height: 34px" width="855">
                <asp:Label ID="Proname" runat="server"></asp:Label></td>
        </tr>
        <tr>
            <td align="right" bgcolor="#ffffff" class="pad" style="width: 167px; height: 24px;">
                商品单价：</td>
            <td bgcolor="#ffffff" class="pad" style="height: 24px">
                <asp:Label ID="MemberPrice" runat="server"></asp:Label></td>
        </tr>
        <tr>
            <td align="right" bgcolor="#ffffff" class="pad" style="width: 167px">
                商品数量：</td>
            <td bgcolor="#ffffff" class="pad">
                <asp:TextBox ID="num" runat="server">1</asp:TextBox>&nbsp;
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="num"
                    ErrorMessage="输入数据格式不对" ValidationExpression="^\+?[1-9][0-9]*$"></asp:RegularExpressionValidator></td>
        </tr>
        <tr>
            <td bgcolor="#ffffff" class="pad" colspan="2" style="width: 100%">
                <table border="0" cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <td style="height: 24px; width: 18%;">
                            <asp:Button ID="btnContinue" runat="server" CausesValidation="False" OnClick="btnContinue_Click"
                                Text="继续购物" /></td>
                        <td style="height: 24px; width: 18%;">
                            <asp:Button ID="btnAdd" runat="server" OnClick="btnAdd_Click" Text="加入购物车" /></td>
                        <td style="height: 24px; width: 21%;">
                            <asp:Button ID="btnClear" runat="server" CausesValidation="False" OnClick="btnClear_Click"
                                Text="清空购物车" /></td>
                        <td style="height: 24px" width="33%">
                            <asp:Button ID="btnChk" runat="server" OnClick="btnChk_Click" Text="结  帐" Width="115px" /></td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</asp:Content>

